<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div></div>
    <div></div>
    <div></div>
    <div></div>
    <div></div>
    <div></div>
    <div></div>
    <div></div>
    <div></div>
    <div></div>
    <script>
         //第一遍
         const BB=['1','2'];
         console.log(...BB);//1 2

         //应用1 拼接数组
         const A=['1','2'];
         const B=['4','5'];
         let c=[...A,...B];
         console.log(c);//['1','2','4','5']
         //应用2 深拷贝
         const D=[...A];
         D[0]='5';
         console.log(A);//['1'.'2']
         console.log(D);//['5'.'2']

         //将DOM的伪数组变成真数组
         let dv=document.getElementsByTagName('div');
         const divArr=[...dv];
         console.log(divArr);//div数组



         //第二遍
         const BB=['1','2'];
         console.log(...BB);//1 2

         //应用1 拼接数组
         const A=['1','2'];
         const B=['4','5'];
         let c=[...A,...B];
         console.log(c);//['1','2','4','5']
         //应用2 深拷贝
         const D=[...A];
         D[0]='5';
         console.log(A);//['1'.'2']
         console.log(D);//['5'.'2']

         //将DOM的伪数组变成真数组
         let dv=document.getElementsByTagName('div');
         const divArr=[...dv];
         console.log(divArr);//div数组


         //第三遍
         const BB=['1','2'];
         console.log(...BB);//1 2

         //应用1 拼接数组
         const A=['1','2'];
         const B=['4','5'];
         let c=[...A,...B];
         console.log(c);//['1','2','4','5']
         //应用2 深拷贝
         const D=[...A];
         D[0]='5';
         console.log(A);//['1'.'2']
         console.log(D);//['5'.'2']

         //将DOM的伪数组变成真数组
         let dv=document.getElementsByTagName('div');
         const divArr=[...dv];
         console.log(divArr);//div数组
    </script>
</body>
</html>